package com.wantdo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by king on 2017/10/13.
 */
@MapperScan("com.wantdo.mapper")
@ServletComponentScan("com.wantdo.filter")
@RestController
@SpringBootApplication
public class MainControl {

	public static void main(String[] args) {
		SpringApplication.run(MainControl.class, args);
	}

	@RequestMapping("/")
	public String index() {
		return "hello world!";
	}


}
